<?php	namespace Common\Model;
use Hdphp\Model\Model;
class Site extends Model
{
	protected $table = 'site';
	protected $validate = array(
		
	);
	public function store()
	{
		if(!$this->create()) return false;
//		p($_POST['shipping']);
		$data = array(
			'consignee'=>$_POST['consignee'],
			'shipping' =>$_POST['shipping'],
			'Phone' => $_POST['Phone'],
			'mobile'=>$_POST['mobile'],
			'user_did'=>$_POST['yid'],
			'postcode'=>$_POST['postcode'],
			'province'=>$_POST['province'],
			'city'=>$_POST['city'],
			'district'=>$_POST['district']
		);
//		$shipping = str_replace(',', '', $shipping);
		return $this->add($data);
	}
}
